package java3_23.Zoo;

public class Bat extends Mammal  implements Flight {
    public Bat(String name, String sex, String type) {
        super(name, sex, type);
    }

    @Override
    public void eat() {
        System.out.println(getType()+getName()+"正在吃肉");
    }

    @Override
    public void play() {
        System.out.println(getType()+getName()+"正在玩耍");
        fly();
    }

    @Override
    public void fly() {
        System.out.println(getType()+getName()+"正在高速飞行");
    }
}
